package facade;

public class FacadeMain {
    public static void main(String[] args) {
        // 使用外观模式播放音频
        AudioPlayerFacade audioPlayer = new AudioPlayerFacade();
        audioPlayer.play("MP3");

        // 不使用外观模式时，需要直接操作子系统的细节
        AudioDecoder decoder = new AudioDecoder();
        AudioRenderer renderer = new AudioRenderer();
        decoder.decode("WAV");
        renderer.render();
    }
}
